<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ include file="/page/core/common/commonvariable.jsp"%>
<div id="edit-data-warp">
	<form class="form-horizontal" role="form" method="post">
		<div class="col-sm-12">


			<div class="form-group  col-sm-6 ">
				<div class="col-xs-26">
					<label class="control-label"><spring:message code="任务名称"></spring:message>
						<span style="color: red;">*</span></label>
				</div>
				<div class="col-xs-74">
					<input type="text" onblur="commonutil.trim(this);" id="jobName"
						class="form-control b-validate" ng-model="jobForm.jobName"
						validate-feature="require" validate-maxCharLength="200" />
				</div>
			</div>

			<div class="form-group  col-sm-6 ">
				<div class="col-xs-26">
					<label class="control-label"><spring:message code="任务分组"></spring:message>
						<span style="color: red;">*</span></label>
				</div>
				<div class="col-xs-74">
					<input type="text" onblur="commonutil.trim(this);" id="jobGroup"
						class="form-control b-validate" ng-model="jobForm.jobGroup"
						validate-feature="require" validate-maxCharLength="200" />
				</div>
			</div>

			<div class="form-group  col-sm-6 ">
				<div class="col-xs-26">
					<label class="control-label"><spring:message code="任务类"></spring:message>
						<span style="color: red;">*</span></label>
				</div>
				<div class="col-xs-74">
					<input type="text" onblur="commonutil.trim(this);"
						id="jobClassName" class="form-control b-validate"
						ng-model="jobForm.jobClassName" validate-feature="require"
						validate-maxCharLength="250" />
				</div>
			</div>

			<div class="form-group  col-sm-6 ">
				<div class="col-xs-26">
					<label class="control-label"><spring:message code="任务描述"></spring:message>
						<span style="color: red;">*</span></label>
				</div>
				<div class="col-xs-74">
					<input type="text" onblur="commonutil.trim(this);" id="description"
						class="form-control b-validate" ng-model="jobForm.description"
						validate-feature="require" validate-maxCharLength="250" />
				</div>
			</div>

			<div class="form-group  col-sm-6 ">
				<div class="col-xs-26">
					<label class="control-label"><spring:message code="开始时间"></spring:message>
						<span style="color: red;">*</span></label>
				</div>
				<div class="col-xs-74">
					<input size="16" type="text" readonly class="form_datetime"
						ng-model="jobForm.startTime" validate-feature="require"
						>
				</div>
			</div>

			<div class="form-group  col-sm-6 ">
				<div class="col-xs-26">
					<label class="control-label"><spring:message code="结束时间"></spring:message>
						<span style="color: red;">*</span></label>
				</div>
				<div class="col-xs-74">

					<input size="16" type="text" readonly class="form_datetime"
						ng-model="jobForm.endTime" validate-feature="require"
						>

				</div>
			</div>

			<div class="form-group  col-sm-6 ">
				<div class="col-xs-26">
					<label class="control-label"><spring:message code="表达式"></spring:message>
						<span style="color: red;">*</span></label>
				</div>
				<div class="col-xs-74">
					<input type="text" onblur="commonutil.trim(this);"
						id="cronExpression" class="form-control b-validate"
						ng-model="jobForm.cronExpression" validate-feature="require"
						validate-maxCharLength="200" />
				</div>
			</div>

			<div class="form-group  col-sm-6 ">
				<div class="col-xs-26">
					<label class="control-label"><spring:message code="任务参数"></spring:message>
						<span style="color: red;">*</span></label>
				</div>
				<div class="col-xs-74" id="form_param_1">
					<div class="controls">
						<table>
							<thead>
								<tr>
									<th style="width: 4%;">参数名</th>
									<th style="width: 10%;">参数值</th>
									<th style="width: 10%;">操作</th>
								</tr>
							</thead>
							<tbody ng-repeat="o in params">
								<tr>
									<td><input type="text" style="width: 80px;"
										placeholder="参数名" maxlength="20" name="params_name"
										ng-model="o.params_name" class="m-wrap" /></td>
									<td><input type="text" style="width: 80px;"
										placeholder="参数值" maxlength="20" name="params_value"
										ng-model="o.params_value" class="m-wrap" /></td>
									<td><a href="javascript:void(0)" class="btn icn-only"
										ng-click="add_param_div($index)"><i class="icon-plus">{{o.operateValue}}</i></a>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>







			<div class="col-sm-12" style="margin-top: 20px">
				<div class="col-sm-6">
					<input type="button" ng-click="doCancel();"
						class="btn btn-primary btn-block" value="取&nbsp;&nbsp;消" />
				</div>
				<div class="col-sm-6">
					<input type="button" ng-click="doAdd();"
						class="btn btn-primary btn-block" value="保&nbsp;&nbsp;存" />
				</div>
			</div>
		</div>
	</form>
</div>


